package com.fly.platform.common.utils

import cn.hutool.core.util.IdUtil

/**
 * 雪花算法
 * @author fly
 */
object SnowFlakeUtil {


    private val snowflake = IdUtil.createSnowflake(1, 1)

    fun nextId(): Long {

        return snowflake.nextId()
    }
}